gtkfontbutton: hexpand the font label
authorTimm Bäder <mail@baedert.org>
Sat, 21 Jan 2017 07:45:44 +0000 (08:45 +0100)
committerTimm Bäder <mail@baedert.org>
Sun, 22 Jan 2017 13:38:21 +0000 (14:38 +0100)
To restore the previous look.

gtk/gtkfontbutton.c

index fced5351e720532eca5e01ac900ec7681b5c40ea..5e5f0f9fccd4430519e64e37be3a3146240a4769 100644 (file)
@@ -638,12 +638,13 @@ gtk_font_button_init (GtkFontButton *font_button)
   priv->button = gtk_button_new ();
   g_signal_connect (priv->button, "clicked", G_CALLBACK (gtk_font_button_clicked), font_button);
   priv->font_label = gtk_label_new (_("Font"));
+  gtk_widget_set_hexpand (priv->font_label, TRUE);
   priv->size_label = gtk_label_new ("14");
   priv->font_size_box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
 
   box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
   gtk_container_add (GTK_CONTAINER (box), priv->font_label);
+
   gtk_container_add (GTK_CONTAINER (priv->font_size_box), gtk_separator_new (GTK_ORIENTATION_VERTICAL));
   gtk_container_add (GTK_CONTAINER (priv->font_size_box), priv->size_label);
   gtk_container_add (GTK_CONTAINER (box), priv->font_size_box);